package cz.incad.psh.pshassign.client.rpc;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import java.io.IOException;
import java.util.ArrayList;

@RemoteServiceRelativePath("pshService")
public interface PSHService extends RemoteService {
    String searchNusl(String q);
    String getPSHKeys(String id);
    String getDocVectors(String id);
    String getOptions() throws Exception;
    void setOptions(String props) throws IOException;
    String getKeyNames(String id) throws Exception;
    
    void cancelIndex();
    int getCurrentIndex() throws Exception;
    boolean getIsRunningIndex();
    String fullIndex() throws Exception;
    String updateIndex(String from) throws Exception;
    
    String indexPsh() throws Exception;
    String updatePsh(String url) throws Exception;
    
    String assign(boolean update) throws Exception;
    void cancelAssign();
    int getCurrentAssign() throws Exception;
    boolean getIsRunningAssign();
    
    String saveToInvenio(String xml);
    
    ArrayList<String> getStopWords() throws Exception;
    void addStopWord(String word) throws Exception;
    void removeStopWord(String word) throws Exception;
    
    String getInstitutions() throws Exception;
    void setInstitutions(String json) throws IOException;
    
    
}
